package com.wht.media.model.param;

import lombok.Data;
import org.noear.solon.validation.annotation.NotBlank;

import java.io.Serializable;

@Data
public class TranscodeParam implements Serializable {

    private static final long serialVersionUID = 1;

    /**
     * url(rtmp协议只支持H264)
     */
    @NotBlank(message = "url不为空")
    private String url;

    /**
     * 转码后推的app
     */
    @NotBlank(message = "转码后推的app不为空")
    private String app;

    /**
     * 是否开启音频
     */
    private Boolean enableAudio = true;

    /**
     * 转码后推的stream
     */
    @NotBlank(message = "转码后推的stream不为空")
    private String stream;

    /**
     * 修改分辨率宽，不需要则置为空
     */
    private Integer scaleWidth = 0;

    /**
     * 修改分辨率高，不需要则置为空
     */
    private Integer scaleHeight = 0;
}
